package me.wangcai.trafficpoliceai.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("Violation")
public class Violation {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String illustrate;
    @TableField("carId")
    private String carId;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate time;
    private byte[] picture;
    private boolean isHandle;

}